﻿#pragma once

#include <QWidget>
#include <QObject>

#include <QtWidgets>
#include <QDebug>
#include <QFileSystemModel>
#include "treeview.h"


class QDockWidget;
class SlightExplorerClass : public QObject
{
	Q_OBJECT

public:
	explicit SlightExplorerClass(QWidget* parent);
	~SlightExplorerClass();
	static bool copy(const QString& source,
		const QString& destination);

private slots:
	void on_OpenShow();
	void on_context_Menu_requested(const QPoint& pos);
	void newFolder();
	void removeItem();
	void cutItem();
	void pasteItem();

public:
	
private:
	QDockWidget* dockWidget_; 
	QWidget* mainWidget_;
	QFileSystemModel* fileModel;
	QMenu* contextMenu;
	QAction* removeItemAction;
	QAction* cutItemAction;
	QAction* pasteItemAction;
	//QAction* newFolderAction;
	QModelIndex* clipboard;
	TreeView* treeView;


};
